package com.yx.common.core.constant;

/**
 * 通用常量信息
 *
 * @author ruoyi
 */
public class Constants
{
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * www主域
     */
    public static final String WWW = "www.";

    /**
     * RMI 远程方法调用
     */
    public static final String LOOKUP_RMI = "rmi:";

    /**
     * LDAP 远程方法调用
     */
    public static final String LOOKUP_LDAP = "ldap:";

    /**
     * LDAPS 远程方法调用
     */
    public static final String LOOKUP_LDAPS = "ldaps:";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 成功标记
     */
    public static final Integer SUCCESS = 200;

    /**
     * 失败标记
     */
    public static final Integer FAIL = 500;

    /**
     * 登录成功状态
     */
    public static final String LOGIN_SUCCESS_STATUS = "1";

    /**
     * 登录失败状态
     */
    public static final String LOGIN_FAIL_STATUS = "2";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 注册
     */
    public static final String REGISTER = "Register";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 当前记录起始索引
     */
    public static final String PAGE_NUM = "pageNum";

    /**
     * 每页显示记录数
     */
    public static final String PAGE_SIZE = "pageSize";

    /**
     * 排序列
     */
    public static final String ORDER_BY_COLUMN = "orderByColumn";

    /**
     * 排序的方向 "desc" 或者 "asc".
     */
    public static final String IS_ASC = "isAsc";

    /**
     * 验证码有效期（分钟）
     */
    public static final long CAPTCHA_EXPIRATION = 2;

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    /**
     * 定时任务白名单配置（仅允许访问的包名，如其他需要可以自行添加）
     */
    public static final String[] JOB_WHITELIST_STR = { "com.ruoyi","com.sgcc" };

    /**
     * 定时任务违规的字符
     */
    public static final String[] JOB_ERROR_STR = { "java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
            "org.springframework", "org.apache", "com.ruoyi.common.core.utils.file" };

    /**
     * 存入缓存session名称前缀
     */
    public static final String CUSTOM_SESSION_PREFIX = "uid-";

    /**
     * 全量权限session名称
     */
    public static final String CUSTOM_SESSION_PERMISSION_ALL = "permission-all";


    /**
     * 权限缓存Key
     */
    public static final String PERMISSION_LIST = "Permission_List";

    /**
     * 存储登录用户的session
     */
    public static final String CUSTOM_SESSION_LOGIN_USER =  "login-user-";

    /**
     * 存储登录用户的缓存的KEY
     */
    public static final String USER_DEPT_NAME = "User_Dept_Info";

    /**
     * 存储登录用户角色集合的KEY
     */
    public static final String LOGIN_USER_INFO = "Login_User_Info";

    public static final String USERNAME_PASSWORD = "name_pass_%s";

    /**
     * 存储登录用户的缓存的KEY
     */
    public static final String USER_NAME = "User_Name";

    /**
     * 存储初始化全量用户基本信息的session Key
     */
    public static final String CUSTOM_INIT_USER_INFO_SESSION =  "Init-All-User-Basic-Details-List";

    /**
     * 存储初始化全量用户信息的session Key
     */
    public static final String INIT_ALL_USER_INFO_LIST =  "Init-All-User-Info-List";


    /**
     * 默认值为0
     */
    public static final int SHOW_DATA_DEFAULT_COUNT = 0;

    /**
     * 默认值为0
     */
    public static final long SHOW_DATA_DEFAULT_COUNT_L = 0;
    
}
